package traductor;

public class PalabrasEntrada {
	private String palabra = "";
	Base base = new Base();
	public String ingresarPalabra(String palabra) {
		System.out.println(palabra);
		return palabra;
	}
	
	public void buscarPalabra(){
		for(int i= 0; i < base.cadena.length;i++){
			if(palabra.equals(base.cadena[i])){
				System.out.println("Palabra encontrada");
			}
		}
		
	}
	
	public String mostrarPalabra(){
		int i= 0;
		int espacio =0;
		for(i= 0; i < base.cadena.length;i++){
			if(palabra.equals(base.cadena[i])){
				espacio = i;
			}
		}
		
		return base.cadena2[espacio];
	}
}
